package com.caseProject.puremvc.mediator.states.graphicStates
{
	import com.caseProject.puremvc.mediator.events.GraphicEvent;
	import com.caseProject.puremvc.mediator.gui.Graphic;
	
	import flash.filters.DropShadowFilter;

	public class SelectState implements IGraphicState
	{
		public function SelectState()
		{
		}
		
		public function setVisual(g:Graphic):void
		{
			g.filters = [new DropShadowFilter (0, 45, 0xFFFF00, 1, 10, 10, 5)];
		}
		
		public function action(g:Graphic):void
		{
			g.dispatchEvent(new GraphicEvent(GraphicEvent.CLICK, null, true));
		}
	}
}